package fr.inserm.um915.jimpute.model;


import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.bind.tuple.TupleInput;
import com.sleepycat.bind.tuple.TupleOutput;


public class Combined
	{
	private double combined_rate;
	private double genetic_map;
	
	
	public static final TupleBinding<Combined> BINDING=new TupleBinding<Combined>()
			{
			@Override
			public void objectToEntry(Combined o, TupleOutput out)
				{
				out.writeDouble(o.getCombinedRate());
				out.writeDouble(o.getGeneticMap());
				}
			
				
			@Override
			public Combined entryToObject(TupleInput in)
				{
				double d1=in.readDouble();
				double d2=in.readDouble();
				return new Combined(d1,d2);
				}
			};
	
	public Combined(double combined_rate,double genetic_map)
		{
		this.combined_rate=combined_rate;
		this.genetic_map=genetic_map;
		}
	
	public double getCombinedRate()
		{
		return combined_rate;
		}
	public double getGeneticMap() {
		return genetic_map;
		}
	}
